package music;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy // 启用AspectJ自动代理
public class PlayerConfig {

    @Bean
    public Player player(){
        return new MusicPlayer();
    }

    @Bean
    public Counter counter() {
        return new Counter();
    }
}
